package com.jf.cloud.service.sysmanager.support.connect;


import java.util.HashMap;
import java.util.Map;

import org.springframework.util.Assert;
/**
 *  �������
 * @author ouyang ����ʱ�䣺May 23, 2012 1:47:29 PM
 */
public class Param {
   
	private String url; //���ʵĵ�ַ
    private Map<String, String> params; //����Я���Ĳ���
    private String encoding; // ���Ͳ������õ��ַ�����
    
	public Param(String url) {
		this.url = url;
		params = new HashMap<String, String>();
	}
	public Param() {
		params = new HashMap<String, String>();
	}

	/**
	 * TODO ��Ӷ������  
	 * @author ouyang ����ʱ�䣺May 23, 2012 1:43:19 PM
	 */
	public Param put(String key,String value) {
		Assert.hasText(key);
		params.put(key, value);
		return this;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Map<String, String> getParams() {
		return params;
	}
	public void setParams(Map<String, String> params) {
		this.params = params;
	}
	public String getEncoding() {
		return encoding;
	}
	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}
   
}
